-- GENERATED SPELL FOR [Unstable Mur'ghoul] --


function spell0_23643(pUnit, Event) --@Unstable Explosion,Self--
pUnit:FullCastSpellOnTarget(49948,pUnit)
pUnit:RegisterEvent('Sorts_23643', 3000, 1)
end

function Sorts_23643(pUnit, Event)
local choix_sorts_23643 = math.random(0, 0)
if choix_sorts_23643 == 0 then
pUnit:RegisterEvent('spell0_23643', 1, 1)
end
end

function mob23643_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23643', math.random(1500, 3000), 1)
end

function mob23643_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23643_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23643_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23643, 1, 'mob23643_Action')
RegisterUnitEvent(23643, 2, 'mob23643_Leave')
RegisterUnitEvent(23643, 3, 'mob23643_Kill')
RegisterUnitEvent(23643, 4, 'mob23643_Die')
